package com.yj.model;

import java.io.Serializable;
import java.util.Set;

public class Teacher implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private Academy academy;
	private Role role;
	private String password;
	private String name;
	private String email;
	private Set<Course> courses;
	
	public Teacher() {

	}
	
	public Teacher(Academy academy, Role role, String password, String name, String email) {
		this.academy = academy;
		this.role = role;
		this.password = password;
		this.name = name;
		this.email = email;
	}

	public Teacher(Academy academy, Role role, String password, String name, String email, Set<Course> courses) {
		this.academy = academy;
		this.role = role;
		this.password = password;
		this.name = name;
		this.email = email;
		this.courses = courses;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Academy getAcademy() {
		return academy;
	}
	public void setAcademy(Academy academy) {
		this.academy = academy;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public Set<Course> getCourses() {
		return courses;
	}

	public void setCourses(Set<Course> courses) {
		this.courses = courses;
	}
	
}
